package com.wang.jmonkey.ca.handler.login.success;

import org.springframework.security.core.Authentication;
import org.springframework.security.oauth2.common.OAuth2AccessToken;

import javax.servlet.http.HttpServletRequest;

/**
 * @Description 获取token的适配器
 * @Author HeJiawang
 * @Date 2021/5/14 14:15
 */
public interface TokenBuildHandlerAdapter {

    OAuth2AccessToken handler(HttpServletRequest request, Authentication authentication);

    boolean support(String oauthType);
}
